import 'package:flutter/material.dart';
import '../../utils/ScreenAdapter.dart';
import '../../components/FNavBar.dart';

class LiveCreate extends StatefulWidget {
  LiveCreate({Key key}) : super(key: key);

  @override
  _PostEditPredictionState createState() => _PostEditPredictionState();
}

class _PostEditPredictionState extends State<LiveCreate> {
  @override
  Widget build(BuildContext context) {
    ScreenAdapter.init(context);
    return Scaffold(
      body: Column(
        children: <Widget>[
          BfNavBar(
            title: "创建直播",
            titleColor: Color(0xff222222),
            backgroundColor: Colors.white,
            // stateBarColor: Color.fromRGBO(0, 0, 0, 0.2),
          ),
          Container(
            width: ScreenAdapter.getScreenWidth(),
            height: ScreenAdapter.width(270),
            color: Colors.green,
            padding: EdgeInsets.all(ScreenAdapter.width(30)),
            child: Row(
              children: <Widget>[
                Container(
                  width: ScreenAdapter.width(476),
                  height: 100,
                  color: Colors.purple,
                ),
                Image.network(
                  "https://ss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=3097385587,739587137&fm=26&gp=0.jpg",
                  width: ScreenAdapter.width(210),
                  height: ScreenAdapter.width(210),
                  fit: BoxFit.cover,
                )
              ],
            ),
          ),
          InkWell(
            onTap: () {
              Navigator.pushNamed(context, "/secondpage");
            },
            child: Container(
              width: 100,
              height: 50,
              color: Colors.blue[700],
            ),
          )
        ],
      ),
    );
  }
}
